{config_load file="$language/lang.conf" section="account_history_info"}
{config_load file="$language/lang.conf" section="print_order"}
{config_load file="$language/lang.conf" section="product_info"}
<div class="content-block">
	<div class="gray-title-top">
		<div class="b-left"></div>{#heading_history_info#} ({#text_oid#} {$ORDER_NUMBER}){#title_orders#} <a href="{$LINK_ALL}">{#text_all#}</a></span>
		<div class="b-right"></div>
	</div>
	<div class="con-cen">
		<div class="content-text">

<div class="mg">
	<strong>{$ORDER_STATUS}</strong><br />
	{#text_date#} <strong>{$ORDER_DATE}</strong>
</div>

<div class="mg">
<div class="lrbox">
	<div class="lbox">
		<h3 class="small-title">{#text_shipping_address#}</h3>
		{$DELIVERY_LABEL}
	</div>
	{if $BILLING_LABEL}
	<div class="rbox">
		<h3 class="small-title">{#text_payment_address#}</h3>
		{$BILLING_LABEL}
	</div>
	{/if}
	<div class="clear"></div>
</div>
</div>
<div class="lrbox">
	<div class="lbox">
		<h3 class="small-title">{#text_shipping_method#}</h3>
		{$SHIPPING_METHOD}
	</div>
	{if $PAYMENT_METHOD}
	<div class="rbox">
		<h3 class="small-title">{#text_payment_method#}</h3>
		{$PAYMENT_METHOD}
	</div>
	{/if}
	<div class="clear"></div>
</div>

{if $ORDER_COMMENTS!=''}
<div class="mg">
	<h3 class="small-title">{#text_comments#}</h3>
	{$ORDER_COMMENTS}
</div>
{/if} 
{if $PAYMENT_INFORMATION!=''}
<div class="mg">
	<h3 class="small-title">{#text_payment_info#}</h3>
	{$PAYMENT_INFORMATION}
</div>
{/if}

<div class="mg">
	<h3 class="small-title">{#title_history#}</h3>
	{$HISTORY_BLOCK}
</div>


<div class="mg">
<table class="prod-sort-table">
	<thead>
		<tr class="bold">
			<td class="qty">Кол.</td>
			<td class="des">{#head_products#}</td>
			<td class="tot">Един.</td>
			<td class="rem">{#head_price#}</td>
		</tr>
	</thead>
	<tbody>
		{foreach name=aussen item=order_values from=$order_data}
		<tr class="{if $smarty.foreach.aussen.iteration % 2 == 1}bg2{else}bg1{/if}">
			<td class="qty center"><span class="bold">{$order_values.PRODUCTS_QTY}</span> x</td>
			<td class="des">
				<span class="bold">{$order_values.PRODUCTS_NAME}</span>
				<span class="info">
				{if $order_values.PRODUCTS_SHIPPING_TIME neq ''}{#text_shippingtime#} {$order_values.PRODUCTS_SHIPPING_TIME}<br />{/if}
				{$order_values.PRODUCTS_ATTRIBUTES}
				</span>
			</td>
			<td class="sin buy"><span class="cost bold"><em>{$order_values.PRODUCTS_SINGLE_PRICE}</em></span></td>
			<td class="tot buy"><span class="cost bold"><em>{$order_values.PRODUCTS_PRICE}</em></span></td>
		</tr>
		{/foreach}
	</tbody>
</table>
</div>
<div class="clear"></div>
<div class="history-total-cost">
{foreach name=aussen item=order_total_values from=$order_total}
	{$order_total_values.TITLE} <strong>{$order_total_values.TEXT}</strong><br />
{/foreach} 
</div>
<div class="clear"></div>
	  

{if $downloads_content neq ''}
	{$downloads_content}
{/if}
<br />
<div class="clear"></div>
<div class="fl">{$BUTTON_PRINT} {$BUTTON_SCHET_PRINT} {$BUTTON_KVITANCIA_PRINT}</div>
<div class="frt">{$BUTTON_BACK}</div>
<div class="clear"></div>

		</div>
	</div>
	<div class="con-foo"><div class="sb-left"></div><div class="sb-right"></div></div>
</div>
